import 'package:shared_preferences/shared_preferences.dart';


class SharedPreferenceHelp {

  static Future save(Map<String, String> params) async {
    SharedPreferences preferences = await SharedPreferences.getInstance();
    params.forEach((key, value) {
      preferences.setString(key, value);
    });
  }

  static Future<String> read(String key) async{
    SharedPreferences preferences = await SharedPreferences.getInstance();
    return preferences.get(key);
  }

  static Future remove(String key) async{
    SharedPreferences preferences = await SharedPreferences.getInstance();
    preferences.remove(key);
  }
}